import axios, { AxiosResponse } from 'axios';
import configData from '../../app.config';
// 创建 axios 实例
const service = axios.create({
  baseURL: configData.U9WebApi,
  timeout: 600000,
  headers: { 'Content-Type': 'application/json;charset=utf-8' },
});

// 响应拦截器
service.interceptors.response.use((response: AxiosResponse) => {
  return response;
});

// 导出 axios 实例
export default service;
